home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-28 | 1.0 KB | 27 lines | [TEXT/ToyS] |
- tell application "clip2gif"
- --some text
- set theDrawing to {{drawn text:"clip2gif 0.4", size:100, font:"Times", position:{20, 370}}}
-
- --and a colorful chart
- set theDrawing to theDrawing & {{line:{10, 270, 490, 270}, thickness:3}}
- repeat with x from 20 to 460 by 20
- set h to random number from 20 to 250
- set rgb to {random number from 0 to 80, ¬
- random number from 0 to 80, ¬
- random number from 0 to 80}
- set theDrawing to theDrawing & {{RGB color:rgb, rectangle:{x, 270 - h, x + 18, 270}}}
- end repeat
- set h0 to random number from 20 to 250
- repeat with x from 40 to 460 by 20
- set h to random number from 20 to 250
- set theDrawing to theDrawing ¬
- & {{RGB color:{0, 0, 100}, line:{x - 10, 270 - h0, x + 10, 270 - h}, thickness:2}}
- set h0 to h
- end repeat
-
- --creates the graphic from scratch by specifying the size of the image instead of a PICT file
- convert {500, 400} saving as GIF ¬
- in (new file default name "clip2gif04-test.gif") ¬
- depth 8 drawing theDrawing with interlacing and transparency
- end tell
-